package lt.ntec.danblog.server.core.validator.rules;

import lt.ntec.danblog.server.core.Message;
import lt.ntec.danblog.server.core.SimpleMessage;
import lt.ntec.danblog.server.core.validator.Rule;

public class GuestTextContent extends PatternRule implements Rule {

    @Override
    public Message getMessage() {
        return new SimpleMessage(Message.Type.NOTICE, "Not allowed content exist");
    }

    @Override
    protected String getPattern() {
        return "^[\\w\\s!-~]+$";
    }
}
